#include "stdafx.h"
#include "CriticalSection.h"

using namespace ISAPI_Python::Win32Helpers;

CriticalSection::CriticalSection() {
	InitializeCriticalSection(&Handle);
}

CriticalSection::~CriticalSection() {
	DeleteCriticalSection(&Handle);
}

void CriticalSection::Enter() {
	EnterCriticalSection(&Handle);
}

void CriticalSection::Leave() {
	LeaveCriticalSection(&Handle);
}